package com.itheima.health.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;

import java.util.List;

/**
 * @Author:ZZZ
 * @Date: 2021/1/19 10:40
 * @Version 1.0
 */
public interface PermissionService {

    void add(Permission permission);

    void deleteById(int id);

    PageResult<Permission> findPage(QueryPageBean queryPageBean);

    void update(Permission permission);

    Permission findById(int id);

    /**
     * 查询所有权限
     * @return
     */
    List<Permission> findPermissionAll();
}
